

<div class="modal fade" id="fdutil_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog" id="e">
		
		<div class="modal-content">
			
			<div class="modal-header">
        		<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        		<h4 class="modal-title" id="myModalLabel">Dettaglio File</h4>
      		</div>
      		
      		<div class="modal-body">
        		
        		<g:if test = "${fd}">
		
					<table class="table">
			<tbody>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.fileName.label" default="Nome File" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: fd, field: "fileName")}</td>
				
			</tr>
			
			
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.user.label" default="Caricato da" /></td>
				
				<td valign="top" class="value">${fd?.user?.encodeAsHTML()}</td>
				
			</tr>
			
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.comments.label" default="Commenti" /></td>
				<g:if test="${fd.comments}">
					<td valign="top" class="value">${fieldValue(bean: fd, field: "comments")}</td>
				</g:if>
				<g:else>
					<td valign="top" class="value"><span class="text-muted">Nessun Commento per questo file</span></td>
				</g:else>
				
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.dateCreated.label" default="Data Creazione" /></td>
				
				<td valign="top" class="value"><g:formatDate date="${fd?.dateCreated}" type="datetime" style="LONG" timeStyle="SHORT"/></td>
				
			</tr>
			
			
<%--		Il tipo di documento qui non ci va--%>

<%--			<tr class="prop">--%>
<%--				<td valign="top" class="name"><g:message code="fileDocument.documentType.label" default="Tipo documento" /></td>--%>
<%--				--%>
<%--				<td valign="top" class="value">--%>
<%--					--%>
<%--						${fd?.documentType?.documentType}--%>
<%--				--%>
<%--				</td>--%>
<%--				--%>
<%--			</tr>--%>
		
			
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.filePath.label" default="Percorso File" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: fd, field: "filePath")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.fileSize.label" default="Dimensione File" /></td>
				<td valign="top" class="value">${fd?.byteFormat()}</td>
<%--				<td valign="top" class="value">${fieldValue(bean: fd, field: "fileSize")}&nbsp </td>--%>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="fileDocument.file_estension.label" default="Tipo File" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: fd, field: "file_estension")}</td>
				
			</tr>
		
<%--			<tr class="prop">--%>
<%--				<td valign="top" class="name"><g:message code="fileDocument.lastUpdated.label" default="Last Updated" /></td>--%>
<%--				--%>
<%--				<td valign="top" class="value"><g:formatDate date="${fd?.lastUpdated}" /></td>--%>
<%--				--%>
<%--			</tr>--%>
		
			
		
		</tbody>
	</table>
		
		<div class="modal-footer">
			<button type="button" class="btn btn-default" data-dismiss="modal">Chiudi</button>
			<a type="button" href="${createLink(action:'download_file',params:[fileId:fd.id])}" class="btn btn-success">Download</a>
		</div>
				
				</g:if>
				<g:else>
					<div class="alert alert-info fade in col col-md-5 col-md-offset-1">
				
						<i class="fa-fw fa fa-info"></i>
						<strong>Non riesco a reperire le informazioni del File</strong> 
					</div>
				</g:else>
        		
      		</div>
		
		
		</div>
	
	</div>
	

</div>